import http from '../utils/http'

export const stuPost = (stuObj)=>{ //新增学员
  return http.post('/stu',stuObj)
}

export const stuGet = ()=>{ //学员列表查询
  return http.get('/stu')
}

export const stuDel = (_id)=>{ //学员删除
  return http.delete(`/stu?_id=${_id}`)
}

export const stuPut = (_id,stuObj)=>{ //学员更新
  return http.put(`/stu?_id=${_id}`,stuObj)
}

export const goodsPost = (goodsArr)=>{ //新增学员
  return http.post('/goods',{glist:goodsArr})
}